package com.bishe;

import com.api.util.JobUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
//@MapperScan("com.bishe.mapper")
@EnableSwagger2
public class JobApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(JobApplication.class, args);

        JobUtils.setApplicationContext(run);
    }

}
